package com.example.time_manage_web.service.impl;

import com.example.time_manage_web.mapper.FocusMapper;
import com.example.time_manage_web.pojo.Focus;
import com.example.time_manage_web.service.FocusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: time_manage_web
 * @BelongsPackage: com.example.time_manage_web.service.impl
 * @Author: fox
 * @CreateTime: 2023-03-29  18:09
 * @Description: TODO
 * @Version: 1.0
 */
@Service("focusService")
public class FocusServiceImpl implements FocusService {

    @Autowired
    private FocusMapper focusMapper;

    @Override
    public List<Focus> queryfocus() {
        return this.focusMapper.queryfocus();
    }

    @Override
    public int insert(Focus focus) {
        int a =this.focusMapper.insertfocus(focus);
        return a;
    }
}
